<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
	<link type="text/css" href="<c:url value="css/user/userCommon.css"/>" rel="stylesheet" />
	<link type="text/css" href="<c:url value="css/user/userLeftContent.css"/>" rel="stylesheet" />
	<link type="text/css" href="<c:url value="css/user/userHomepage.css"/>" rel="stylesheet" />
	<link type="text/css" href="<c:url value="css/inputFormStyle.css"/>" rel="stylesheet" />
	<script type="text/javascript" src="<c:url value="/js/user/leftmenu.js" />" charset="utf-8"></script>
	<script type="text/javascript" src="<c:url value="/js/userInfoValidation.js" />" charset="utf-8"></script>
	<script type="text/javascript" src="<c:url value="/js/user/userModifyInfoValidation.js" />" charset="utf-8"></script>	
	<%@include file="/jsp/common/jspCommonHeadSetting.jsp"%>
	<title>network</title>
  </head>
  
  <body>
	<div id="wrap">
	<%@include file="/jsp/common/header.jsp"%>
	<div id="mid_header">
		<ul class="ul">显示用户名</ul>
	</div>
	<div id="content">
		<%@include file="/jsp/common/userLeftContent.jsp"%>
		<div class="rrcc" id="RightBox">
		<div id="right_content">
			<div class="title">
				修改用户信息
			</div>
			<div id="input_area">
				<div>
					<span class="input_line">用户名：<s:property value="user.userName"></s:property></span>
				</div>
				<s:form action="/user/modifyPassword.action" namespace="/" onsubmit="return checkModifyPwd();">
					<s:hidden name="user.userName"></s:hidden>
					<div>
						<span class="input_line"><s:password id="pwd" label="密码" name="password"></s:password></span>
					</div>
					<div>
						<span class="input_line"><s:password id="pwdconfirm" label="确认密码" name="pwdconfirm"></s:password></span>
					</div>
					<div>
						<span class="input_line"><s:submit name="submit" value="修改密码"></s:submit>
						</span>
					</div>
				</s:form>
				<s:form action="/user/modifyUserInfo.action" namespace="/" onsubmit="return checkModifyUserInfo();">
					<s:hidden name="user.userName"></s:hidden>
					<s:hidden name="user.password"></s:hidden>
					<s:hidden name="user.role"></s:hidden>
					<div>
						<span class="input_line"><s:textfield id="name" label="姓名" name="user.name"></s:textfield></span>
					</div>
					<div>
						<span class="input_line"><s:textfield id="school" label="学校" name="user.school"></s:textfield></span>
					</div>
					<div>
						<span class="input_line"><s:textfield id="college" label="学院" name="user.college"></s:textfield></span>
					</div>
					<div>
						<span class="input_line"><s:textfield id="email" label="Email" name="user.email"></s:textfield></span>
					</div>
					<div>
					</div>
					<div>
						<span class="input_line"><s:submit name="submit" value="更新信息"></s:submit>
						</span>
					</div>
				</s:form>
			</div>
		</div>
		</div>
	</div>	
	<div id="footer">版权声明</div>
</div>
  </body>
</html>
